package com.geekgo.ladder.core.aspect;

/**
 * @author geekgo
 * @version 2016/12/19 16:38
 */
public abstract class HandleDataSource {
    //数据源名称线程池
    private static final ThreadLocal<String> handler = new ThreadLocal<String>();

    public static void putDataSource(String datasource){
        handler.set(datasource);
    }
    public static String getDataSource(){
        return handler.get();
    }
    public static void clear(){
        handler.remove();
    }
}
